<?php
$json_advertisers = array();
foreach ($sf_data->getRaw('advertisers') as $advertiser){
    $json_advertisers[] = array(
            "name" => $advertiser->getNombre(),
    );
}

echo $json = json_encode(
            array(
                "advertisers" => $json_advertisers
            )
        );
?>